home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Programming / tek / list / addtail.c < prev    next >
C/C++ Source or Header  |  2001-05-12  |  352b  |  23 lines

  1.  
  2. #include "tek/list.h"
  3.  
  4. /* 
  5. **    TEKlib
  6. **    (C) 2001 TEK neoscientists
  7. **    all rights reserved.
  8. **
  9. **    void TAddHead(TLIST *list, TNODE *node)
  10. **
  11. **    add node at tail of list
  12. **
  13. */
  14.  
  15. void TAddTail(TLIST *list, TNODE *node)
  16. {
  17.     TNODE *temp = list->tailpred;
  18.     list->tailpred = node;
  19.     node->succ = (TNODE *) &list->tail;
  20.     node->pred = temp;
  21.     temp->succ = node;
  22. }
  23.